package org.khd.org.mapper;

import org.khd.org.domain.Department;
import org.khd.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {

    //新增Department数据
    void insertDep(Department department);

    //修改Department数据
    void updateDep(Department department);

    //根据id删除Department数据
    void deleteDepById(Long id);

    //根据id查询Department数据
    Department queryDepById(Long id);

    //查询Department数据
    List<Department> queryDepAll();

    //用来查询Department数据的总条数
    Long queryDepCount(DepartmentQuery query);

    //用来查询Department每页的数据
    List<Department> queryDepPage(DepartmentQuery query);

    //加载部门树
    List<Department> queryDepTree();

    //批量删除Department数据
    void patchDeleteDep(List<Long> ids);
}
